import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";
/** 获取订单列表 */
export const getOrderList = data => {
  return http.request("post", baseUrlApi("/order/pageList"), { data });
};

// 下单
export const getOrderNo = params => {
  return http.request("get", baseUrlApi("/pay/getOrderNo"), { params });
};

//查单
export const createOrder = data => {
  return http.request("post", baseUrlApi("/pay/wxNativePayCreateOrder"), {
    data
  });
};

// 获取订单详情
export const getOrderDetail = params => {
  return http.request("get", baseUrlApi("/pay/getSystemOrderStatusByOrderNo"), {
    params
  });
};

//获取订单产品
export const getOrderProduct = params => {
  return http.request("get", baseUrlApi("/vipTypeInfo/getVipTypeInfo"), {
    params
  });
};
